/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.signallight.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 信号灯与停车区关联Entity
 * @author Leon
 * @version 2019-04-12
 */
public class TSignalLight extends DataEntity<TSignalLight> {
	
	private static final long serialVersionUID = 1L;
	private String lightcode;		// 信号灯编号
	private String areaid;		// 区域id
	private String areaName;	//区域名称
	private String lightdirection;		// 信号灯方向
	private String ip;		// ip
	private String port;		// 端口
	private String status;		// 信号灯状态
	private String lightname; //信号灯名称

	@Length(min=0, max=64, message="信号灯名称长度必须介于 0 和 64 之间")
	public String getLightname() {
		return lightname;
	}

	public void setLightname(String lightname) {
		this.lightname = lightname;
	}

	public TSignalLight() {
		super();
	}

	public TSignalLight(String id){
		super(id);
	}

	@Length(min=0, max=64, message="信号灯编号长度必须介于 0 和 64 之间")
	public String getLightcode() {
		return lightcode;
	}

	public void setLightcode(String lightcode) {
		this.lightcode = lightcode;
	}
	
	@Length(min=0, max=64, message="区域id长度必须介于 0 和 64 之间")
	public String getAreaid() {
		return areaid;
	}

	public void setAreaid(String areaid) {
		this.areaid = areaid;
	}
	
	@Length(min=0, max=64, message="信号灯方向长度必须介于 0 和 64 之间")
	public String getLightdirection() {
		return lightdirection;
	}

	public void setLightdirection(String lightdirection) {
		this.lightdirection = lightdirection;
	}
	
	@Length(min=0, max=64, message="ip长度必须介于 0 和 64 之间")
	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}
	
	@Length(min=0, max=64, message="端口长度必须介于 0 和 64 之间")
	public String getPort() {
		return port;
	}

	public void setPort(String port) {
		this.port = port;
	}
	
	@Length(min=0, max=1, message="信号灯状态长度必须介于 0 和 1 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getAreaName() {
		return areaName;
	}

	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}
}